package com.ysoul.test.dal;

import com.ysoul.test.model.Order;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.CrudRepository;

@EnableJpaRepositories
@EntityScan
@Configuration
public interface OrderRepository extends CrudRepository<Order, Long> {

    Order findByOrderId(Long orderId);
}